<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
	<link href='css/table.css' type="text/css" rel="stylesheet">
	<script type="text/javascript" src="js/ScriptsFile1.js"></script>
</head>
<body onload = "InitializePage_LedgerDetails()">
<s:div class="topDiv">
	<TABLE width="100%" class="table_body" align="left">
		<tr valign="top" >
			<td align="left" class="colA_title_header" colspan = "2"  >
				<Center><i>Financial Assist - Company Details</i></center>
			</td>
		</tr>

		<tr valign="top" >
			<td align="left" class="colA_title_nobold" colspan = "2">
				&nbsp;Please select an option to proceed.
			</td>
		</tr>
		<tr valign="top" id = "editLedger">
			<td align="left" class="colA_title" width = "50%">
			<center>&nbsp;&nbsp;&nbsp;<input type="radio" name="group1" value="1" onclick = "ledgeroption()">Select Existing Ledger&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :</center>
			</td></tr>

	<tr valign="top">
			<td align="left" class="colA_title" width = "50%">
			<center>&nbsp;&nbsp;&nbsp;<input type="radio" name="group1" value="2"  onclick = "ledgeroption()">Create New Ledger &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</center>
			</td>
			<td align="left" class="colA_title_nobold"  width = "50%">
				<i>&nbsp;&nbsp;&nbsp;</i>
			</td>
		</tr>
		</table>
	
	<s:form id="ledgername" action="editLedger" method="post" align="center">
	<s:select name="ledger" headerKey="-1" headerValue="Select Ledger"
	 list="ledgerList"
	 listKey="id"  
       listValue="ledgerName" />
	<s:submit value="EDIT" align="center"/><s:submit value="DELETE" align="center"/>
	</s:form>
		<s:form id="createLed" action="createLedger" method="post" align="center">
	<s:textfield name="ledger.ledgerName" label="LEDGER NAME"/>
	<s:doubleselect label="LEDGER TYPE" 
name="ledger.ledgerType" list="ledgerMap.keySet()" 
doubleName="ledger.ledgerSubType" doubleList="ledgerMap.get(top)" />

	<s:submit value="CREATE" align="center"/>
	</s:form>
	</s:div>
</body>
</html>